<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.js"></script>
</head>
<body class="body">
	<jsp:include page="include/head.jsp">
		<jsp:param value="${ep}" name="ep"/>
	</jsp:include>
		
	
	<div class="container">
	  <div class="row">
		<div class="span3">
			<div style="padding: 8px 0;" class="well">
				<jsp:include page="include/nav.jsp">
					<jsp:param value="${ep}" name="ep"/>
				</jsp:include>
			</div>
		</div>
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="#"><i class="icon-fire"></i>想法</a>
				</li>
				<li class="pull-right"><i class="icon-plus"></i><a href="idea.jspx?_m=newIdea" class="link-black">发表想法</a></li>
			</ul>
			<div class="wall" style="margin-bottom:20px;">
				<c:if test="${fn:length(pager.result) == 0 }">
					<blockquote>
					    <h4>没有想法！</h4>
					</blockquote>
				</c:if>
				<c:forEach items="${pager.result}" var="ideaHelp">
					<blockquote>
						 <h4><a href="idea.jspx?ideaId=${ideaHelp.ideaId}&p=${pager.nowPageNum}&_m=showIdea">${ideaHelp.idea.title }</a></h4>
						 <p style="font-size:14px;line-height:1.5;">${ideaHelp.idea.content}...</p>
						 <small>${ideaHelp.employeeName}发表于 ${ideaHelp.idea.createtime}</small>
						 <c:if test="${ideaHelp.employeeName == ep.employee.username}">
							 <a href="idea.jspx?_m=editIdea&ideaId=${ideaHelp.ideaId}&p=${pager.nowPageNum}" title="编辑"><i class="icon-pencil"></i></a>
							 <a href="idea.jspx?_m=delIdea&ideaId=${ideaHelp.ideaId}&p=${pager.nowPageNum}" title="删除"><i class="icon-trash"></i></a>
						 </c:if>
					</blockquote>
				</c:forEach>
				
				<jsp:include page="include/pager.jsp">
					<jsp:param value="${pager}" name="pager"/>
					<jsp:param value="idea.jspx" name="jspx"/>
				</jsp:include>
				
				<div class="clear"></div>
			</div>
		</div>
	  </div>
	</div>

</body></html>
